const House = require('../database/House')
const list = async (req, res) => {
  let result = await House.getHouseList()
  res.json({
    result,
  })
}
const create = async (req, res) => {
  //校验数据 req.body.title
  let result = await House.createHouse(req.body)
  res.json({
    result,
  })
}

module.exports = {
  list,
  create,
}
